"""
客户端
"""
from socket import *

c = socket()
c.connect(('127.0.0.1', 8000))
while True:
    msg = input('>>>:').strip()
    if not msg: continue
    c.send(msg.encode('utf8'))
    re_msg = c.recv(1024).decode('utf8')
    print(re_msg)
